package com.wink.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 用户和角色关联表
 *
 * @author xw
 * @date 2020/11/5 15:48
 */
@Entity
@Table(name = "sys_user_role")
@TableName("sys_user_role")
@EqualsAndHashCode(callSuper = true)
@Data
@org.hibernate.annotations.Table(appliesTo = "sys_user_role", comment = "用户和角色关联表")
public class SysUserRole extends BaseEntity {

    @Column(name = "user_id", columnDefinition = ("varchar(30) not null comment '登录账号ID'"))
    private String userId;

    @Column(name = "role_id", columnDefinition = ("varchar(30) not null comment '角色ID'"))
    private String roleId;

}
